package com.shop.cereshop.app.param.map;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "OffsetBoundsRequest", description = "生成矩形经纬度串的请求参数")
public class OffsetBoundsRequest {

    @NotNull(message = "经度不能为空")
    @ApiModelProperty(value = "经度", required = true, example = "117.356821")
    private Double lng;

    @NotNull(message = "纬度不能为空")
    @ApiModelProperty(value = "纬度", required = true, example = "31.865616")
    private Double lat;

    @ApiModelProperty(value = "接收用户ID", required = false)
    private String receiverUserId;

    /**
     * 群组号与用户id二选一
     */
    @ApiModelProperty(value = "群组号与用户id二选一", required = false)
    private String groupId;

    @NotBlank(message = "点位名称不能为空")
    @ApiModelProperty(value = "点位名称", required = true)
    private String pointName;

    @ApiModelProperty(value = "点位描述")
    private String pointDesc;
}


